//
//  HomeRecordViewController.m
//  Cat
//
//  Created by lushitong on 2019/1/3.
//  Copyright © 2019年 lushitong. All rights reserved.
//

#import "HomeRecordViewController.h"
#import "HomeCommedCollectionView.h"

@interface HomeRecordViewController ()

@property (nonatomic, strong) HomeCommedCollectionView *recommedView;

@end

@implementation HomeRecordViewController

- (void)viewDidLoad {
    [super viewDidLoad];
	[self loadScrollView];
	self.topTitleView.hidden = YES;
}

- (HomeCommedCollectionView *)recommedView {
	if (!_recommedView) {
		UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
		layout.minimumLineSpacing = 0.0;
		layout.minimumInteritemSpacing = kQKFitModuleFloor(10);
		CGFloat height = ScreenHeight - NavigationBarHeight - StatusBarHeight - kQKFitModuleDecimal(32.0) - kQKFitModuleDecimal(3.0) -kQKFitModuleDecimal(20.0);
		_recommedView = [[HomeCommedCollectionView alloc] initWithFrame:CGRectMake(0.0, 0.0, ScreenWidth, height) layout:layout];
	}
	return _recommedView;
}

- (void)loadScrollView {
	[self.view addSubview:self.recommedView];
}

@end
